/**
 * 
 */
package org.pump.client.codec;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author liudong03
 * 
 */
public class Packet {
	private static final Logger mylog = LoggerFactory.getLogger(Packet.class);
	PacketHead head;
	PacketBody body;
	
	public Packet()
	{
	}
	public Packet(PacketHead myhead,PacketBody mybody)
	{
		this.head = myhead;
		this.body = mybody;
	}
	/**
	 * @return the head
	 */
	public PacketHead getHead() {
		return head;
	}

	/**
	 * @param head
	 *            the head to set
	 */
	public void setHead(PacketHead head) {
		this.head = head;
	}

	/**
	 * @return the body
	 */
	public PacketBody getBody() {
		return body;
	}

	/**
	 * @param body
	 *            the body to set
	 */
	public void setBody(PacketBody body) {
		this.body = body;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Packet [head=" + head + ", body=" + body + "]";
	}
	
	

}
